/* Moved all existing CSS from <style> tag to this file */
body { 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    font-family: monospace; 
    background-color: #121212;
    color: #00ff00;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
#fps-display {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}
#hertz-display {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #00ff44;
}
#device-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    color: #00ff44;
    font-size: 0.8rem;
}
#leaderboard {
    background-color: rgba(0,255,0,0.1);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

#leaderboard::-webkit-scrollbar {
    width: 8px;
}

#leaderboard::-webkit-scrollbar-track {
    background: rgba(0,255,0,0.1);
}

#leaderboard::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 4px;
}

#leaderboard::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,255,0,0.7);
}

#leaderboard h2 {
    text-align: center;
    margin-top: 0;
}
#leaderboard-entries {
    list-style-type: none;
    padding: 0;
}
#leaderboard-entries li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,255,0,0.3);
    padding-bottom: 5px;
}
#leaderboard-entries li .score-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#leaderboard-entries li .score-details small {
    color: rgba(0,255,0,0.7);
    font-size: 0.7rem;
}
#leaderboard-entries li .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    object-position: center;
}
#leaderboard-entries li .player-info {
    display: flex;
    flex-direction: column;
}
#name-input {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
#name-input input {
    flex-grow: 1;
    background-color: #1e1e1e;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px;
}
#name-input button {
    background-color: #00ff00;
    color: #121212;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.delete-score {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 3px 6px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.7rem;
    border-radius: 3px;
    display: none; 
}
#cursor-info {
    position: fixed;
    top: 0;
    left: 0;
    color: #00ff44;
    font-size: 0.7rem;
    background-color: rgba(0,0,0,0.5);
    padding: 5px;
    display: none;
}
.owner-badge {
    background-color: rgba(128, 0, 255, 0.3);
    color: #a040ff;
    border: 1px solid #a040ff;
    border-radius: 5px;
    padding: 2px 5px;
    margin-left: 10px;
    font-size: 0.6rem;
    vertical-align: middle;
}